Line3
data class Line3(val direction: Vec3, val moment: Vec3, val precision: DoubleEquivalence = DEFAULT_DOUBLE_EQUIVALENCE) : Line<Vector3<*>> (source)
Represents a line in 3D space defined by a direction vector and a moment (point offset).
The line is stored in Plücker form using a unit direction vector and a moment vector computed as point × direction for any point on the line. The distance to the line is the magnitude of the perpendicular offset vector. Since a 3D line does not divide space into two half-spaces, offset and location use a deterministic auxiliary orientation to choose a sign; that sign is a classification convention, not a geometric side of the line.
Constructors
Link copied to clipboard
constructor(direction: Vec3, moment: Vec3, precision: DoubleEquivalence = DEFAULT_DOUBLE_EQUIVALENCE)
Properties
Link copied to clipboard
The precision used for geometric computations, defaulting to DEFAULT_DOUBLE_EQUIVALENCE.